package com.qfedu.edu.orderservice.service;

import com.qfedu.edu.bo.CreateOrderBack;
import com.qfedu.edu.bo.OrderShow;
import com.qfedu.edu.vo.CreateOrderVo;

import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;

/**
 * @author xiaobobo
 * @title: OrderService
 * @projectName seckill-fy-2401-parent
 * @description: TODO
 * @date 2024/11/11  11:51
 */
public interface OrderService {

 /**
  * 创建订单
  * @param createOrderVo
  * @return：订单号
  */
 CreateOrderBack createOrder(CreateOrderVo createOrderVo, HttpServletRequest req) throws UnsupportedEncodingException;

 /**
  * 通过订单号查询订单信息
  * @param orderNumber
  * @return
  */
 OrderShow listOrderByOrderNumber(String orderNumber);
}
